import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_getx/res/colors/colors.dart';
import 'package:flutter_getx/res/dimens/dimens.dart';
import 'package:flutter_getx/res/styles.dart';
import 'package:get/get.dart';

import 'two_logic.dart';

class TwoPage extends StatelessWidget {
  final logic = Get.put(TwoLogic());
  final state = Get.find<TwoLogic>().state;

  TwoPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: CustomScrollView(
        slivers: [
          SliverAppBar(
            pinned: true,
            foregroundColor: Colors.black,
            systemOverlayStyle: SystemUiOverlayStyle.light, //状态栏文字白色 不再使用 brightness属性
            primary: true,
            backgroundColor: gradientStart,
            elevation: Dp.dp_5,
            title: Text(
              'Search',
              style: appbarBlack,
            ),
          )
        ],
      ),
    );
  }
}
